package com.xuecheng.order.service;

import com.xuecheng.commons.model.vo.OrdersVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.UserOrdersVo;
import com.xuecheng.order.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-09-29
 */
public interface OrdersService extends IService<Orders> {

    //创建订单
    ResponseResult<String> create(Long coursePubId);

    //根据orderNo查询，订单的支付状态
    ResponseResult<OrdersVo> queryOrders(String orderNo);

    //清理超时订单
    void getPayment();

    ResponseResult<List<UserOrdersVo>> selectUserOrder(String id);

    ResponseResult<List> selectOrder();

    ResponseResult excelDownload(HttpServletResponse httpServletResponse, String companyId);
}
